{{#extends @html/widget/hp/widget.html}}

{{:widget_class}}wg-calendar{{/:widget_class}}

{{:widget_body}}

	{{!connect "decoration/widget/widgets/wg-calendar.css"}}

	{{@:cal}}

	<div class="mounth- next-previous-month">
		<div class="left-">
			<img class="left-arrow-" src="{{!static type='images' 'tmp/widgets/left-arrow.gif'}}" width="7" height="5" alt="" />
			<a href="#{{widget.content.pmonth.ts}}" class="left-mounth- pmonth-">{{widget.content.pmonth.title}}&nbsp;{{widget.content.pmonth.year}}</a>
		</div>
		<div class="right-">      
			<a href="#{{widget.content.nmonth.ts}}" class="right-mounth- nmonth-">{{widget.content.nmonth.title}}&nbsp;{{widget.content.nmonth.year}}</a>
			<img class="right-arrow-" src="{{!static type='images' 'tmp/widgets/right-arrow.gif'}}" width="7" height="5" alt="" />
		</div>
	</div>

{{/:widget_body}}

{{:widget_title}}{{/:widget_title}}

{{:cal}}
<div class="calendar-">
	<h2 class="title-">{{widget.content.month.title}} {{widget.content.month.year}}</h2>
	<ul class="week-days-" id="cal">
		<li class="first-column-">пн</li>
		<li>вт</li>
		<li>ср</li>
		<li>чт</li>
		<li>пт</li>
		<li class="holiday-">сб</li>
		<li class="holiday-">вс</li>
	</ul>
	<div class="numbers-">
	{{!for widget.content.month.cal do=@:month}}
	{{:month}}
		{{!for * do=@:day}}
		{{:day}}
		<div class="number-{{?For.first}} first-column-{{/?}}{{?*not_current_month}} other-{{/?}}">{{?*act_day}}<a href="{{*url|safe}}">{{*day}}</a>{{?:}}{{*day}}{{/?}}</div>
		{{/:day}}
	{{/:month}}
	</div>
</div>
{{/:cal}}
